Repository navigation
Conversation
The Working Set ID was stored before the object parsed, so after a failure a later Working Set with another ID was refused as a second one. The ID is now stored once the Working Set is in the object tree. Fixes Open-Agriculture#954 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #954.
parse_next_object()setworkingSetIDas soon as it saw a Working Set object, before it parsed the rest of it. If that Working Set then failed to parse, it never got into the object tree, butworkingSetIDkept its ID. A later Working Set with another ID was then refused with "Multiple working set objects are not allowed in the object pool", although the pool had no other Working Set.For example: a client uploads a pool whose Working Set 1 is truncated, and gets an error. It fixes the pool, and the Working Set now has ID 2. The server refuses it until the pool is deleted.
workingSetIDis now set only once the Working Set has parsed and is in the object tree. ISO 11783-6:2018 B.1 allows one Working Set object per pool, and a second Working Set after one that parsed is still refused.Test:
WorkingSetThatFailedToParseDoesNotBlockAnotherOneparses a truncated Working Set 1, then a valid Working Set 2, then a Working Set 3. Working Set 2 is accepted, and 3 is still refused.🤖 Generated with Claude Code